<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>嘉定门户网站后台管理系统</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<link rel="stylesheet" type="text/css"
			href="web/ext/resources/css/ext-all.css" />
<script type="text/javascript" src="web/ext/adapter/ext/ext-base.js"></script>
		<!-- ENDLIBS -->
		<script type="text/javascript" src="web/ext/ext-all.js"></script>

		<script type="text/javascript" src="web/ext/ext-lang-zh_CN.js"></script>
		<style type="text/css">
html,body {
	font: normal 12px verdana;
	margin: 0;
	padding: 0;
	border: 0 none;
	overflow: hidden;
	height: 100%;
}

.empty .x-panel-body {
	padding-top: 0;
	text-align: center;
	font-style: italic;
	color: gray;
	font-size: 11px;
}

.x-btn button {
	font-size: 14px;
}

.x-panel-header {
	font-size: 14px;
}
</style>
<script type="text/javascript">



	Ext.onReady( function() {
		//Ext.Msg.alert('ext','welcome you!');
		var addPanel = function(btn, event) {
			var n;
			n = tabPanel.getComponent(btn.id);
			if(n) {
				tabPanel.setActiveTab(n);
				tabPanel.remove(n);
			}
			n = tabPanel.add( {
				id : btn.id,
				title : btn.text,
				html : '<iframe width=100% height=100% src=' + btn.id + ' />',
				//autoLoad : '',
				closable : 'true'
			});
			tabPanel.setActiveTab(n);
		}

		var item1 = new Ext.Panel( {
			title : '文章管理',
			//html : '&lt;empty panel&gt;',
			cls : 'empty',
			items : [
				new Ext.Button({
					id : 'Articlecheck.action?classId=208',
					text : '图片新闻',
					width : '100%',
					listeners : {
						click : addPanel
					}

				}),

				new Ext.Button({
					id : 'Articlecheck.action?classId=360',
					text : '法院概况',
					width : '100%',
					listeners : {
						click : addPanel
					}

				}),
				
				new Ext.Button({
					id : 'Articlecheck.action?classId=133',
					text : '法院风采',
					width : '100%',
					listeners : {
						click : addPanel
					}

				}),
				
				
				new Ext.Button({
					id : 'Articlecheck.action?classId=364',
					text : '司法公开',
					width : '100%',
					listeners : {
						click : addPanel
					}

				}),
				
				new Ext.Button({
					id : 'Articlecheck.action?classId=152',
					text : '法制宣传',
					width : '100%',
					listeners : {
						click : addPanel
					}

				}),
				
				new Ext.Button({
					id : 'Articlecheck.action?classId=122',
					text : '审判研究',
					width : '100%',
					listeners : {
						click : addPanel
					}

				}),
				
				new Ext.Button({
					id : 'Articlecheck.action?classId=254',
					text : '法院文化',
					width : '100%',
					listeners : {
						click : addPanel
					}

				}),
				
				new Ext.Button({
					id : 'Articlecheck.action?classId=35',
					text : '法院动态',
					width : '100%',
					listeners : {
						click : addPanel
					}

				}),
				
				new Ext.Button({
					id : 'Articlecheck.action?classId=369',
					text : '视频播放',
					width : '100%',
					listeners : {
						click : addPanel
					}

				}),
				
				new Ext.Button({
					id : 'Articlecheck.action?classId=370',
					text : '图片专题',
					width : '100%',
					listeners : {
						click : addPanel
					}

				}),
				
				new Ext.Button({
					id : 'Articlecheck.action?classId=128',
					text : '法律法规',
					width : '100%',
					listeners : {
						click : addPanel
					}

				})

				]
		});
		
		var item2 = new Ext.Panel( {
			title : '查询统计',
			//html : '&lt;empty panel&gt;',
			cls : 'empty',
			items : [ 
				new Ext.Button({
					id : 'ArticleSearchIndex.action',
					text : '文章检索',
					width : '100%',
					listeners : {
						click : addPanel
					}

				}),
				new Ext.Button({
					id : 'aaa.action',
					text : '上传统计',
					width : '100%',
					listeners : {
						click : addPanel
					}

				})
			]
		});
		
		var item3 = new Ext.Panel( {
			title : '模块管理',
			//html : '&lt;empty panel&gt;',
			cls : 'empty',
			items : [ 
				new Ext.Button({
					id : '1.action',
					text : '导航模块',
					width : '100%',
					listeners : {
						click : addPanel
					}
				
				}),
				new Ext.Button({
					id : '2.action',
					text : '专题模块',
					width : '100%',
					listeners : {
						click : addPanel
					}
				
				}),
				new Ext.Button({
					id : 'buttonSubjectList.action',
					text : '按钮模块',
					width : '100%',
					listeners : {
						click : addPanel
					}

				})
			]
		});
		
		var item4 = new Ext.Panel( {
			title : '院长信箱管理',
			//html : '&lt;empty panel&gt;',
			cls : 'empty',
			items : [ 
				new Ext.Button({
					id : 'mailboxlist.action',
					text : '问题回复',
					width : '100%',
					listeners : {
						click : addPanel
					}

				})
				
			]
		});

		var item5 = new Ext.Panel( {
			title : '基本信息管理',
			//html : '&lt;empty panel&gt;',
			cls : 'empty',
			items : [ 
				new Ext.Button({
					id : 'courtUrllist.action',
					text : '友情链接',
					width : '100%',
					listeners : {
						click : addPanel
					}
				
				}),
				new Ext.Button({
					id : 'baseInfolist.action',
					text : '审务公开',
					width : '100%',
					listeners : {
						click : addPanel
					}

				})
			]
		});

		var item6 = new Ext.Panel( {
			title : '人员管理',
			//html : '&lt;empty panel&gt;',
			cls : 'empty'
		});

		

		var accordion = new Ext.Panel( {
			region : 'west',
			margins : '5 0 5 5',
			split : true,
			width : 210,
			layout : 'accordion',
			items : [ item1, item2, item3, item4, item5, item6]
		});

		var tabPanel = new Ext.TabPanel( {
			region : 'center',
			enableTabScroll : true,
			deferredRender : false,
			activeTab : 0,
			items : [ {

				title : '欢迎页',

				//html : 'http://jd.hshfy.sh.cn/jdfyww'
				autoLoad : 'web/pages/welcome.jsp'
			} ]
		});

		var viewport = new Ext.Viewport( {
			layout : 'border',
			items : [ accordion, tabPanel ]
		});

	});
</script>
  </head>
  
  <body>
  </body>
</html>
